<!DOCTYPE html>






<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />


















  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/favicon.ico?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon.ico?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon.ico?v=5.1.3">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="note,🐾," />










<meta name="description" content="希望本文可以帮助到你更快的达成 入门级前端 的成就 这里是其他方案,请选择适合你的  视频教程 翁恺 HTML &amp;amp; CSS &amp;amp; JS 入门   其他方案 菜鸟编程 freecodecamp w3c    下面将循序渐进的列出学习的链接和在线训练,资料多为图文,易放弃..">
<meta name="keywords" content="note,🐾">
<meta property="og:type" content="article">
<meta property="og:title" content="前端漫游指南">
<meta property="og:url" content="https://zhangyuhan2016.gitee.io/2018/03/12/EFE-hitchhiker/index.html">
<meta property="og:site_name" content="zhangyuhan2016">
<meta property="og:description" content="希望本文可以帮助到你更快的达成 入门级前端 的成就 这里是其他方案,请选择适合你的  视频教程 翁恺 HTML &amp;amp; CSS &amp;amp; JS 入门   其他方案 菜鸟编程 freecodecamp w3c    下面将循序渐进的列出学习的链接和在线训练,资料多为图文,易放弃..">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://zhangyuhan2016.gitee.io/images/css.jpg">
<meta property="og:updated_time" content="2018-04-11T05:55:30.464Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="前端漫游指南">
<meta name="twitter:description" content="希望本文可以帮助到你更快的达成 入门级前端 的成就 这里是其他方案,请选择适合你的  视频教程 翁恺 HTML &amp;amp; CSS &amp;amp; JS 入门   其他方案 菜鸟编程 freecodecamp w3c    下面将循序渐进的列出学习的链接和在线训练,资料多为图文,易放弃..">
<meta name="twitter:image" content="https://zhangyuhan2016.gitee.io/images/css.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '5.1.3',
    sidebar: {"position":"right","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://zhangyuhan2016.gitee.io/2018/03/12/EFE-hitchhiker/"/>





  <title>前端漫游指南 | zhangyuhan2016</title>









</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<header style="position: fixed;z-index: 99999999;background-color: #eee;width: 100%;text-align: center;">
    <h3>感谢您的关注，最新博客已迁移至 <mark style="background-color: #07c160;padding: 4px;"><a style="color: #fff;" href="https://blog.hi-zhang.com" target="_blank">blog.hi-zhang.com</a></mark> </h3>
</header>






  <div class="container sidebar-position-right page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">


    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">zhangyuhan2016</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>

        <p class="site-subtitle"></p>

  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">



    <ul id="menu" class="menu">


        <li class="menu-item menu-item-home">
          <a href="/" rel="section">

              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />

            首页
          </a>
        </li>


        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">

              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />

            标签
          </a>
        </li>


        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">

              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />

            归档
          </a>
        </li>



    </ul>



</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">


  <div id="posts" class="posts-expand">








  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">



  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://zhangyuhan2016.gitee.io/2018/03/12/EFE-hitchhiker/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="zhangyuhan2016">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="https://avatars3.githubusercontent.com/u/18086072?s=460&v=4">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="zhangyuhan2016">
    </span>


      <header class="post-header">



          <h1 class="post-title" itemprop="name headline">前端漫游指南</h1>


        <div class="post-meta">
          <span class="post-time">

              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>

                <span class="post-meta-item-text">发表于</span>

              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-03-12T16:10:34+08:00">
                2018-03-12
              </time>



              <span class="post-meta-divider">|</span>



              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-check-o"></i>
              </span>

                <span class="post-meta-item-text">更新于&#58;</span>

              <time title="更新于" itemprop="dateModified" datetime="2018-04-11T13:55:30+08:00">
                2018-04-11
              </time>

          </span>





              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/2018/03/12/EFE-hitchhiker/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2018/03/12/EFE-hitchhiker/" itemprop="commentCount"></span>
                </a>
              </span>





             <span id="/2018/03/12/EFE-hitchhiker/" class="leancloud_visitors" data-flag-title="前端漫游指南">
               <span class="post-meta-divider">|</span>
               <span class="post-meta-item-icon">
                 <i class="fa fa-eye"></i>
               </span>

                 <span class="post-meta-item-text">阅读次数&#58;</span>

                 <span class="leancloud-visitors-count"></span>
             </span>





            <div class="post-wordcount">


                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>

                  <span class="post-meta-item-text">字数统计&#58;</span>

                <span title="字数统计">
                  552
                </span>



                <span class="post-meta-divider">|</span>



                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>

                  <span class="post-meta-item-text">阅读时长 &asymp;</span>

                <span title="阅读时长">
                  2
                </span>

            </div>




        </div>
      </header>





    <div class="post-body" itemprop="articleBody">





        <p>希望本文可以帮助到你更快的达成 <code>入门级</code>前端 的成就</p>
<p>这里是其他方案,请选择适合你的</p>
<ul>
<li>视频教程<ul>
<li><a href="http://study.163.com/provider/318013/course.htm" target="_blank" rel="noopener">翁恺 HTML &amp; CSS &amp; JS 入门</a></li>
</ul>
</li>
<li>其他方案<ul>
<li><a href="http://www.runoob.com/" target="_blank" rel="noopener">菜鸟编程</a></li>
<li><a href="https://freecodecamp.cn" target="_blank" rel="noopener">freecodecamp</a></li>
<li><a href="https://www.w3cschool.cn/codecamp/list?pename=html5_and_css_camp" target="_blank" rel="noopener">w3c</a></li>
</ul>
</li>
</ul>
<p>下面将循序渐进的列出学习的链接和在线训练,资料多为图文,易放弃..</p>
<a id="more"></a>
<h3 id="走进-HTML-amp-CSS-8h"><a href="#走进-HTML-amp-CSS-8h" class="headerlink" title="走进 HTML &amp; CSS 8h"></a>走进 HTML &amp; CSS <code>8h</code></h3><ul>
<li>熟悉元素及语义化 <code>1.5h</code><ul>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element" target="_blank" rel="noopener">HTML元素参考</a></li>
<li><a href="http://justineo.github.io/slideshows/semantic-html" target="_blank" rel="noopener">语义化HTML</a></li>
</ul>
</li>
<li>熟悉css元素及选择器 <code>0.5h</code><ul>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference" target="_blank" rel="noopener">css元素参考</a></li>
<li><a href="http://www.w3school.com.cn/cssref/css_selectors.asp" target="_blank" rel="noopener">css选择器参考</a></li>
</ul>
</li>
<li>完成 HTML5 &amp; CSS 系列训练 (二选一)<ul>
<li><a href="https://freecodecamp.cn" target="_blank" rel="noopener">freecodecamp</a></li>
<li><a href="https://www.w3cschool.cn/codecamp/list?pename=html5_and_css_camp" target="_blank" rel="noopener">w3c</a></li>
</ul>
</li>
<li>实现基本布局 <code>3h</code><ul>
<li>圣杯布局 <code>0.5h</code></li>
<li>手机端常见布局 <code>0.5h</code><br>这里你可能需要去重温<a href="http://zh.learnlayout.com/" target="_blank" rel="noopener">css 布局基础</a> <a href="http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html" target="_blank" rel="noopener">flex 布局</a><br><img src="/images/css.jpg" alt="常见布局"></li>
</ul>
</li>
<li><p>模仿一些网站</p>
<ul>
<li><p><a href="https://www.baidu.com/" target="_blank" rel="noopener">百度</a></p>
<p>  你可以通过右键另存获取你需要的图标<br>  当然我建议你按下 <kbd>F12</kbd> 选择 <kbd>Network</kbd> 再筛选 <kbd>Img</kbd> ,<kbd>F5</kbd> 刷新后可以看到所有的图片请求<br>  这里你可能会看到一张含有所有小图标的<a href="http://www.w3school.com.cn/css/css_image_sprites.asp" target="_blank" rel="noopener">精灵图</a></p>
</li>
</ul>
</li>
</ul>
<h4 id="扩展"><a href="#扩展" class="headerlink" title="扩展"></a>扩展</h4><p>加<code>*</code>为必须完成项</p>
<ul>
<li><a href="#">* 使用IconFont</a></li>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Learn/Getting_started_with_the_web" target="_blank" rel="noopener">* Web开发入门</a></li>
<li><p><a href="http://autoprefixer.github.io/" target="_blank" rel="noopener">* autoprefixer</a></p>
</li>
<li><p><a href="https://www.sass.hk/guide/" target="_blank" rel="noopener">CSS进阶 Sass</a></p>
</li>
<li><a href="http://yanxyz.github.io/emmet-docs/" target="_blank" rel="noopener">开发效率 Emmet</a></li>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Grid_Layout" target="_blank" rel="noopener">CSS Grid</a></li>
</ul>
<h3 id="了解-JavaScript-n-day"><a href="#了解-JavaScript-n-day" class="headerlink" title="了解 JavaScript  n day "></a>了解 JavaScript <code> n day </code></h3><ul>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/What_is_JavaScript" target="_blank" rel="noopener">了解 JavsScript</a></li>
<li><a href="https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000" target="_blank" rel="noopener">廖雪峰 JavaScript</a></li>
<li><a href="http://es6.ruanyifeng.com/" target="_blank" rel="noopener">ES6 入门</a></li>
<li><a href="http://www.ruanyifeng.com/blog/2016/04/cors" target="_blank" rel="noopener">跨域</a></li>
<li><a href="http://youmightnotneedjquery.com/" target="_blank" rel="noopener">jQ原生写法 你可能不需要jQuery</a></li>
<li><a href="https://github.com/axios/axios" target="_blank" rel="noopener">axios</a><h4 id="进阶"><a href="#进阶" class="headerlink" title="进阶"></a>进阶</h4></li>
<li><a href="http://www.ruanyifeng.com/blog/javascript/" target="_blank" rel="noopener">阮一峰</a></li>
<li><a href="https://cn.vuejs.org/v2/guide/" target="_blank" rel="noopener">Vue</a></li>
</ul>
<h3 id="了解-Markdown-0-5h"><a href="#了解-Markdown-0-5h" class="headerlink" title="了解 Markdown 0.5h"></a>了解 Markdown <code>0.5h</code></h3><ul>
<li><a href="https://www.zhihu.com/question/20409634" target="_blank" rel="noopener">什么是 Markdown</a></li>
<li><a href="https://segmentfault.com/markdown" target="_blank" rel="noopener">Markdown 语法</a></li>
<li><p><a href="http://wowubuntu.com/markdown/" target="_blank" rel="noopener">Markdown 语法</a></p>
</li>
<li><p>加入JavaScript脚本让它与你交互</p>
<h3 id="发布到网上"><a href="#发布到网上" class="headerlink" title="发布到网上"></a>发布到网上</h3></li>
<li>(付费) 主机服务和域名,通过FTP将你的文件上传至服务器</li>
<li>(免费) github pages &amp; gitee pages</li>
<li>(免费) CodePen &amp; JSBin</li>
<li>(动手)致电运营商获取公网IP,设置路由器设置端口映射、DMZ主机等<h3 id="当你访问发布在网上得页面时发生了什么"><a href="#当你访问发布在网上得页面时发生了什么" class="headerlink" title="当你访问发布在网上得页面时发生了什么"></a>当你访问发布在网上得页面时发生了什么</h3></li>
<li><p><a href="https://www.zhihu.com/question/22689579/answer/22318058" target="_blank" rel="noopener">Web 建站技术中，HTML、HTML5、XHTML、CSS、SQL、JavaScript、PHP、ASP.NET、Web Services 是什么？</a></p>
<p>  当你在浏览器输入你网页得万维网地址后<br>  浏览器从本地Host查找服务器地址，如果没有找到，则一层一层请求域名服务器<br>  服务器收到请求，给你返回网页文件<br>  浏览器渲染收到得文件，呈现页面</p>
</li>
</ul>
<h3 id="升级"><a href="#升级" class="headerlink" title="升级"></a>升级</h3><h4 id="Git"><a href="#Git" class="headerlink" title="Git"></a>Git</h4><h4 id="Chrome-Developer-tools"><a href="#Chrome-Developer-tools" class="headerlink" title="Chrome Developer tools"></a>Chrome Developer tools</h4><h4 id="Pug-amp-Gulp"><a href="#Pug-amp-Gulp" class="headerlink" title="Pug &amp; Gulp"></a><del>Pug &amp; Gulp</del></h4><h4 id="Node-amp-Npm"><a href="#Node-amp-Npm" class="headerlink" title="Node &amp; Npm"></a>Node &amp; Npm</h4><h4 id="Webpack"><a href="#Webpack" class="headerlink" title="Webpack"></a>Webpack</h4><h4 id="EsLint"><a href="#EsLint" class="headerlink" title="EsLint"></a>EsLint</h4><h4 id="MoCha"><a href="#MoCha" class="headerlink" title="MoCha"></a>MoCha</h4><h4 id="算法"><a href="#算法" class="headerlink" title="算法"></a>算法</h4><h4 id="Canvas"><a href="#Canvas" class="headerlink" title="Canvas"></a>Canvas</h4>

    </div>







      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div></div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">




      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/zfb.png" alt="zhangyuhan2016 支付宝"/>
        <p>支付宝</p>
      </div>




  </div>
</div>

      </div>




    <footer class="post-footer">

        <div class="post-tags">

            <a href="/tags/note/" rel="tag">note</a>

            <a href="/tags/🐾/" rel="tag">🐾</a>

        </div>







        <div class="post-nav">
          <div class="post-nav-next post-nav-item">

              <a href="/2018/01/30/Learning-TypeScript/" rel="next" title="TypeScript学习记录">
                <i class="fa fa-chevron-left"></i> TypeScript学习记录
              </a>

          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">

              <a href="/2018/04/11/Echarts-note/" rel="prev" title="Echarts 使用日志">
                Echarts 使用日志 <i class="fa fa-chevron-right"></i>
              </a>

          </div>
        </div>




    </footer>
  </div>



  </article>



    <div class="post-spread">

    </div>
  </div>


          </div>






    <div class="comments" id="comments">
      <div id="disqus_thread">
        <noscript>
          Please enable JavaScript to view the
          <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
        </noscript>
      </div>
    </div>





        </div>



  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">

    <div class="sidebar-inner">




        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>


      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">

              <img class="site-author-image" itemprop="image"
                src="https://avatars3.githubusercontent.com/u/18086072?s=460&v=4"
                alt="zhangyuhan2016" />

              <p class="site-author-name" itemprop="name">zhangyuhan2016</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">


              <div class="site-state-item site-state-posts">

                <a href="/archives/">

                  <span class="site-state-item-count">15</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>







              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">30</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>


          </nav>



          <div class="links-of-author motion-element">


                <span class="links-of-author-item">
                  <a href="https://github.com/zhangyuhan2016" target="_blank" title="GitHub">

                      <i class="fa fa-fw fa-github"></i>GitHub</a>
                </span>


          </div>








        </div>
      </section>


      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">






              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#走进-HTML-amp-CSS-8h"><span class="nav-number">1.</span> <span class="nav-text"><a href="#&#x8D70;&#x8FDB;-HTML-amp-CSS-8h" class="headerlink" title="&#x8D70;&#x8FDB; HTML &amp; CSS 8h"></a>&#x8D70;&#x8FDB; HTML &amp; CSS <code>8h</code></span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#扩展"><span class="nav-number">1.1.</span> <span class="nav-text"><a href="#&#x6269;&#x5C55;" class="headerlink" title="&#x6269;&#x5C55;"></a>&#x6269;&#x5C55;</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#了解-JavaScript-n-day"><span class="nav-number">2.</span> <span class="nav-text"><a href="#&#x4E86;&#x89E3;-JavaScript-n-day" class="headerlink" title="&#x4E86;&#x89E3; JavaScript  n day "></a>&#x4E86;&#x89E3; JavaScript <code> n day </code></span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#进阶"><span class="nav-number">2.1.</span> <span class="nav-text"><a href="#&#x8FDB;&#x9636;" class="headerlink" title="&#x8FDB;&#x9636;"></a>&#x8FDB;&#x9636;</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#了解-Markdown-0-5h"><span class="nav-number">3.</span> <span class="nav-text"><a href="#&#x4E86;&#x89E3;-Markdown-0-5h" class="headerlink" title="&#x4E86;&#x89E3; Markdown 0.5h"></a>&#x4E86;&#x89E3; Markdown <code>0.5h</code></span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#发布到网上"><span class="nav-number">4.</span> <span class="nav-text"><a href="#&#x53D1;&#x5E03;&#x5230;&#x7F51;&#x4E0A;" class="headerlink" title="&#x53D1;&#x5E03;&#x5230;&#x7F51;&#x4E0A;"></a>&#x53D1;&#x5E03;&#x5230;&#x7F51;&#x4E0A;</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#当你访问发布在网上得页面时发生了什么"><span class="nav-number">5.</span> <span class="nav-text"><a href="#&#x5F53;&#x4F60;&#x8BBF;&#x95EE;&#x53D1;&#x5E03;&#x5728;&#x7F51;&#x4E0A;&#x5F97;&#x9875;&#x9762;&#x65F6;&#x53D1;&#x751F;&#x4E86;&#x4EC0;&#x4E48;" class="headerlink" title="&#x5F53;&#x4F60;&#x8BBF;&#x95EE;&#x53D1;&#x5E03;&#x5728;&#x7F51;&#x4E0A;&#x5F97;&#x9875;&#x9762;&#x65F6;&#x53D1;&#x751F;&#x4E86;&#x4EC0;&#x4E48;"></a>&#x5F53;&#x4F60;&#x8BBF;&#x95EE;&#x53D1;&#x5E03;&#x5728;&#x7F51;&#x4E0A;&#x5F97;&#x9875;&#x9762;&#x65F6;&#x53D1;&#x751F;&#x4E86;&#x4EC0;&#x4E48;</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#升级"><span class="nav-number">6.</span> <span class="nav-text"><a href="#&#x5347;&#x7EA7;" class="headerlink" title="&#x5347;&#x7EA7;"></a>&#x5347;&#x7EA7;</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Git"><span class="nav-number">6.1.</span> <span class="nav-text"><a href="#Git" class="headerlink" title="Git"></a>Git</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Chrome-Developer-tools"><span class="nav-number">6.2.</span> <span class="nav-text"><a href="#Chrome-Developer-tools" class="headerlink" title="Chrome Developer tools"></a>Chrome Developer tools</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Pug-amp-Gulp"><span class="nav-number">6.3.</span> <span class="nav-text"><a href="#Pug-amp-Gulp" class="headerlink" title="Pug &amp; Gulp"></a><del>Pug &amp; Gulp</del></span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Node-amp-Npm"><span class="nav-number">6.4.</span> <span class="nav-text"><a href="#Node-amp-Npm" class="headerlink" title="Node &amp; Npm"></a>Node &amp; Npm</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Webpack"><span class="nav-number">6.5.</span> <span class="nav-text"><a href="#Webpack" class="headerlink" title="Webpack"></a>Webpack</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#EsLint"><span class="nav-number">6.6.</span> <span class="nav-text"><a href="#EsLint" class="headerlink" title="EsLint"></a>EsLint</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#MoCha"><span class="nav-number">6.7.</span> <span class="nav-text"><a href="#MoCha" class="headerlink" title="MoCha"></a>MoCha</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#算法"><span class="nav-number">6.8.</span> <span class="nav-text"><a href="#&#x7B97;&#x6CD5;" class="headerlink" title="&#x7B97;&#x6CD5;"></a>&#x7B97;&#x6CD5;</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Canvas"><span class="nav-number">6.9.</span> <span class="nav-text"><a href="#Canvas" class="headerlink" title="Canvas"></a>Canvas</span></a></li></ol></li></ol></div>


          </div>
        </section>
      <!--/noindex-->




    </div>
    <div class="post-block page my-thanks">
        <div class="my-title">致谢</div>
        <div class="thanks">Hexo</div>
        <div class="thanks">Next & Gemini</div>
        <div class="thanks">Gitee</div>
    </div>
  </aside>



      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">









      </div>
    </footer>


      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>

      </div>




  </div>



<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>



























    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>




    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>




    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>




    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>




    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>




    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>




    <script type="text/javascript" src="/lib/three/three.min.js"></script>




    <script type="text/javascript" src="/lib/three/canvas_lines.min.js"></script>






  <script type="text/javascript" src="/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.3"></script>







  <script type="text/javascript" src="/js/src/affix.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.3"></script>




  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.3"></script>






  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.3"></script>









      <script id="dsq-count-scr" src="https://.disqus.com/count.js" async></script>



      <script type="text/javascript">
        var disqus_config = function () {
          this.page.url = 'https://zhangyuhan2016.gitee.io/2018/03/12/EFE-hitchhiker/';
          this.page.identifier = '2018/03/12/EFE-hitchhiker/';
          this.page.title = '前端漫游指南';
        };
        var d = document, s = d.createElement('script');
        s.src = 'https://.disqus.com/embed.js';
        s.setAttribute('data-timestamp', '' + +new Date());
        (d.head || d.body).appendChild(s);
      </script>






























  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src="//unpkg.com/valine/dist/Valine.min.js"></script>

  <script type="text/javascript">
    var GUEST = ['nick','mail','link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item=>{
      return GUEST.indexOf(item)>-1;
    });
    new Valine({
        el: '#comments' ,
        verify: true,
        notify: false,
        appId: 'xxTmc7jwpAd2bWhmkKOI7IGY-gzGzoHsz',
        appKey: 'glPUiD8ljbJsKYhBg5E0ghII',
        placeholder: '说点什么呗 ヾﾉ≧∀≦)o',
        avatar:'mm',
        guest_info:guest,
        pageSize:'10' || 10,
    });
  </script>












  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
  <script>AV.initialize("mpOMyFHLi7a5S0ka5mv3cz7C-gzGzoHsz", "3t0W0au9Mxf0lOGFDF8u89pc");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>
















</body>
</html>
